/*
 * @Author: liu.ff 
 * @Date: 2018-09-12 15:37:14 
 * @Last Modified by: liu.ff
 * @Last Modified time: 2018-09-13 13:50:55
 */

import React, { Component } from 'react';
import {
    StyleSheet,
    View,
    Text,
    Button
} from 'react-native';

export default class Login extends Component {


    render() {
        return (
            <View style={styles.baseView} >
                <Text>登陆页</Text>
                <Button onPress={this.clickOut1} title="登陆吧!"/>
                <Button onPress={this.clickOut2} title="注册吧!"/>
                <Button onPress={this.clickOut3} title="忘记密码吧!"/>
            </View>
        )
    }

    clickOut1 = () => {
        // this.props.navigation.navigate('RootTabRoute',{transition:'forFade'})
        this.props.navigation.replace('RootTabRoute')

    };
    clickOut2 = () => {
        this.props.navigation.navigate('RegRoute')
    };
    clickOut3 = () => {
        this.props.navigation.navigate('FindPwdRoute')
    }
}

const styles = StyleSheet.create({
    baseView: {
        flex: 1,
        flexDirection: 'row',
        justifyContent: 'center',
        alignItems: 'center'
    },
});